package org.plex.model;

import java.util.Date;
import java.util.List;

public interface ProcessInstance
{
	static final short STATUS_INITIATED = 0;
	static final short STATUS_RUNNING = 1;
	static final short STATUS_COMPLETED = 2;
	static final short STATUS_TERMINATED = 4;
	static final short STATUS_TERMINATING = 5;
	static final short STATUS_SUSPENDED = 6;
	static final short STATUS_SUSPENDING = 7;
	static final short STATUS_USUSPENDING = 8;

	String getProcessName();

	Date getProcessStartTime();

	Date getProcessCompleteTime();

	short getProcessInstanceStatus();

	long getProcessInstanceId();

	List getProcessVariables();

	String getInitiator();

	String getInitiatorId();

	String getDescription();
}
